<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{{ settings:site_name }}&nbsp;&bull;&nbsp;{{ template:title }}</title>
<meta name="author" content="KunKun" />
<meta name="copyright" content="" />
<meta name="distribution" content="global" />
<meta name="resource-type" content="document" />
<meta name="language" content="{{lang}}" />
<meta name="keywords" content="{{keywords}}" />
<meta name="description" content="{{description}}" />

{{ asset:css file="reset.css" }}
{{ asset:css file="default.css" }}
{{ asset:js file="modernizr.js" }}
{{ asset:js file="jquery.min.js" }}
{{ asset:js file="admin/ruby.min.js" }}
{{ asset:js file="admin/plugins.js" }}
{{ asset:js file="menu_hover.js" }}
{{ asset:js file="scroll.js" }}

<!-- asset:js file="admin/jquery.easing.1.3.js" -->
<script type="text/javascript">
function active_menu( $module ){
$('li.' + $module).addClass('active');
}
</script> 
{{ asset:js file="admin/admin.js" }}
{{theme:partial name = "kun_lang"}}
{{ asset:render }}
{{ template:metadata }}

	
</head>
<body>
<div id="body">
<div id="wrapper">
{{theme:partial name = "header"}}

<div id="container">
      
      <!--slide-2-->
    <section id="center-panel" class="column">
	    <div id="content">
        	{{ block:render position = "search" }}
            
        	{{theme:partial name = "breadcrumbs"}}
        	
            <!--if parent_id
             shop:categories parent_id = '{{parent_id}}' level = '1' 
            endif -->
			
            {{ template:breadcrumbs }}
				{{ if uri }}
					<div>{{ url:anchor segments=uri title=name }}&nbsp;>&nbsp;</div>
				{{ else }}
            	<div class="post-h">{{ name }}</div>
				{{ endif }}
			{{ /template:breadcrumbs }}
			
			
            {{if pagination}}
			<div class="pagination top">
				{{ pagination }}
            </div>
            {{endif}}
            
            {{if error}}
	            <div class="error alert animated fadeIn"><p>{{error}}</p></div>
            {{endif}}
			{{if success}}
	            <div class="success  alert animated fadeIn"><p>{{success}}</p></div>
            {{endif}}
            
			{{ template:body }}
            <!--is home -->
            {{ if is_home == true }}
            {{ block:render position = "home" }}
            {{ endif}}
            <!--end is home -->
			</div>
    </section>
    <section id="left-panel" class="column">
        {{menu_left}}
    </section>
</div>
<!---->
</div>
<div class="clr"> </div>
{{ theme:partial name = "footer" }}
<script>
//<div class="left_hover"></div>

//<div class="right_hover"></div>
$('.menu > li').hover(function(){
		$(this).siblings().find('ul').hide();
		$(this).find('ul').slideDown();
			},function(){
				//$(this).find('ul').hide();
			});

	$('.menu li.hasChild ul li a').hover(function(){
		$('.menu li.active').removeClass('active');
		$('.left_hover').remove();
		$('.right_hover').remove();
		$('.main_hover').removeClass('main_hover');
		$th = $(this);
		$th.addClass('main_hover');
		$left_hover = '<div class="left_hover"></div>';
		$right_hover = '<div class="right_hover"></div>';
		$th.after($right_hover);
		$th.before($left_hover);
	},function(){
		$th = $(this);
		$('.menu li.active').removeClass('active');
		$th.removeClass('main_hover');
		$('.left_hover').remove();
		$('.right_hover').remove();
		$th.removeClass('main_hover')
	});
</script>
{{ if loading }}
{{ theme:image file = 'ajax-loader.gif' id="loading" }}
{{ endif }}
</div>
{{if user:group_id == 1 or user:group_id == 2}}
	{{ theme:partial name="toolbar" }}
{{endif}}
</body>
</html>